package org.jeecg.modules.online.cgform.converter.impl;

import org.jeecg.modules.online.cgform.converter.channel.ConfigConvert;
import org.jeecg.modules.online.cgform.entity.OnlCgformField;

/**
 * 自定义树
 */
public class TreeSelectConverter extends ConfigConvert {

    public TreeSelectConverter(OnlCgformField onlCgformField){
        super();
        String dictText = onlCgformField.getDictText();
        //ID列,父ID列,显示列,是否有子节点列，
        String[] arr = dictText.split(",");
        this.setTable(onlCgformField.getDictTable());
        this.setCode(arr[0]);
        this.setText(arr[2]);
    }
}

